import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({

  title: "XuSir专属文档",
  description: "记录一些开发中的问题及已经开发完成的组件等等",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: "首页", link: "/" },
      { text: "自定义组件", link: "/originalComponents/code-coloring.md" },
      { text: "其他", link: "/examples/node-reptiles.md" },
      { text: "API或网站收集", link: "/apiAndLink/api.md" },
    ],
    sidebar: {
      "/examples/": [
        { text: "node爬取网站内容", link: "/examples/node-reptiles.md" },
        {text: "vue3+TinyMCE富文本",link: "/examples/vue3-use-TinyMCE.md"},
        { text: "Markdown基础语法", link: "/examples/markdown-examples.md" },
        { text: "发布自定义NPM包", link: "/examples/customNPM.md" },
      ],
      "/originalComponents/": [
        { text: "Prism代码着色组件", link: "/originalComponents/code-coloring.md" },
        { text: "Vue3自定义icon组件", link: "/originalComponents/vue3-custom-icon.md" },
        { text: "Runtime API Examples", link: "/originalComponents/api-examples.md" },
      ],
      "/apiAndLink/": [
        { text: "API", link: "/apiAndLink/api.md" },
        { text: "老服务api", link: "/apiAndLink/oldMXDapi.md" },
      ],
      "/JAVAStudy/":[
        { text: "jdk下载及安装(HelloWorld)", link: "/JAVAStudy/jdk-install.md"},
        { text: "IDEA安装", link: "/JAVAStudy/IDEA-install.md"},
        { text: "JAVA数据类型", link: "/JAVAStudy/data_type.md"},
      ]
    },
    socialLinks: [
      { icon: "github", link: "https://github.com/vuejs/vitepress" },
    ],
  },
});
